Skip to content

Test/event handler start agent e2e - #1547

Draft
kowser-orkes wants to merge 7 commits into
mainfrom
test/event-handler-start-agent-e2e
Draft

Test/event handler start agent e2e#1547
kowser-orkes wants to merge 7 commits into
mainfrom
test/event-handler-start-agent-e2e

Conversation

@kowser-orkes

Copy link
Copy Markdown
Contributor

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • WHOSUSING.md
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

Describe the new behavior from this PR, and why it's needed
Issue #

Alternatives considered

Describe alternative implementation you have considered

Enterprise UI Playwright Tests

Every PR automatically triggers the enterprise UI Playwright E2E test suite.
Tests run against conductor-ui main by default. To test against a different
conductor-ui branch, add this line anywhere in the PR description:

conductor-ui-branch: my-feature-branch

Verifies Spring context loads and MetadataService/ExecutionService/DefaultEventProcessor autowire.
Ports registerHelloWorldAgent/ensureTaskDef from ConductorAgentEndToEndTest.
Adds a smoke test confirming the registered WorkflowDef is flagged isAgent().
Registers an EventHandler with a single start_agent action carrying
${...} placeholders for prompt/sessionId/idempotencyKey.
Fires a genuine Message through DefaultEventProcessor.handle(); the
queue is stubbed only because it's swappable transport, not the
thing under test.
Fires a real event, spies WorkflowExecutor.startAgentExecution() to
capture the resolved AgentStartRequest and executionId (Redis-only
correlationId search isn't available without Elasticsearch), then
awaits the started agent workflow to COMPLETED.
Spies ExecutionService.updateEventExecution() to observe the FAILED
EventExecution DefaultEventProcessor.execute() records internally —
the message still gets acked either way, so failure isn't visible
via queue interaction alone.
Full test-harness module regression and the new test class both
pass after formatting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant